package Date1205;

import java.util.Scanner;

public class Demo2{
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();
		int m = sc.nextInt();
		for(int i = 0;i < n;i++){
			for(int j = 0;j < m;j++ ) {
				char str = (char)(Math.abs(i - j) + 'A');
				System.out.print(str);
			}
            System.out.print("\n");
		}
		
	}
}

